package com.harmony.pilot.knowledge.repository;

import com.harmony.pilot.knowledge.entity.GnBuildFile;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.Optional;

/**
 * GN构建文件Repository
 */
@Repository
public interface GnBuildFileRepository extends JpaRepository<GnBuildFile, Long> {
    
    /**
     * 根据文件路径查找
     */
    Optional<GnBuildFile> findByFilePath(String filePath);
    
    /**
     * 根据路径包含查找
     */
    Optional<GnBuildFile> findByFilePathContaining(String path);
}

